<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
{% comment %}
<!--
  Copyright (C) 2008 ZHENG Zhong <heavyzheng nospam-at gmail D0T com>
  - http://www.zhengzhong.net/
  - http://blog.zhengzhong.net/

  The base template for my homepage webapp. This template defines the following blocks:
  - header
  - navbar
  - sidebar-and-content
  - sidebar
  - content
  
  Created on 2008-12-19.
  $Id: base.html 311 2008-12-30 18:12:22Z heavyzheng $
-->
{% endcomment %}
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="description" content="ZHENG Zhong's homepage"/>
    <meta name="keywords" content="ZHENG Zhong,zheng,zzheng,zhengzhong,heavyz,heavyzheng,"/>
    <meta content="ZHENG Zhong" name="author"/>
    <link rel="shortcut icon" type="image/ico" href="/favicon.ico"/>
    <link rel="stylesheet" type="text/css" media="screen,print" href="{{ static_ }}/stylesheets/common.css"/>
    
    <!-- Include Google AJAX API. -->
    <script src="http://www.google.com/jsapi" type="text/javascript"></script>
    <!-- Load jQuery library via Google AJAX API. -->
    <script type="text/javascript">//<![CDATA[
      google.load("jquery", "1.2");
    //]]></script>
    
    {% block html_head %}FIXME: html_head block is required!{% endblock %}
  </head>
  
  <body>
    
    <div id="outer-wrapper">
    
      <div id="topbar-wrapper">
      
        <!-- The following info is in the shadow. -->
        <span class="shadow">
          {% if user_ %}
            {{ user_.nickname }} | <a href="{{ log_url_ }}">Logout</a> |
          {% else %}
            <a href="{{ log_url_ }}">Login</a> |
          {% endif %}{# user_ #}
        </span>
        <!-- Shadowed info ends here. -->
        
        {% if user_ and is_admin_ %}
          <a href="{{ url_ }}/file/">File Repo*</a> |
          <a href="{{ url_ }}/environ/">Environment*</a> |
        {% endif %}{# user_ and is_admin_ #}
        
        <a href="{{ url_ }}/">Home</a> |
        <a href="http://blog.zhengzhong.net/">Blog</a> |
        <a href="http://www.flickr.com/photos/zhengzhong/">Photos</a> |
        <a href="http://buggarden.zhengzhong.net/">Bug Garden</a>
      
      </div><!--/#topbar-wrapper-->
      
      <div id="header-wrapper">
        {% block header %}FIXME: header block is required!{% endblock %}
      </div>
      
      <div id="navbar-wrapper">
        {% block navbar %}{% endblock %}
      </div><!--/#navbar-wrapper-->
      
      <div id="sidebar-and-content-wrapper">
        {% block sidebar-and-content %}
          <div id="sidebar-wrapper">
            {% block sidebar %}FIXME: sidebar block is required!{% endblock %}
          </div><!--/#sidebar-wrapper-->
          <div id="content-wrapper">
            {% block content %}FIXME: content block is required!{% endblock %}
          </div><!--/#content-wrapper-->
        {% endblock %}{# sidebar-and-content #}
      </div><!--/#sidebar-and-content-wrapper-->
      
      <div id="footer-wrapper">
        &copy;2008 ZHENG Zhong &lt;heavyzheng nospam-at gmail D0T com&gt;
        <br/>
        Last revised at $Date: 2008-12-30 18:12:22 +0000 (Tue, 30 Dec 2008) $
        ($Revision: 311 $)
        <br/>
        |
        <a href="{{ url_ }}/">Home</a> |
        <a href="http://blog.zhengzhong.net/">Blog</a> |
        <a href="http://www.flickr.com/photos/zhengzhong/">Photos</a> |
        <a href="http://buggarden.zhengzhong.net/">Bug Garden</a> |
        <a href="http://validator.w3.org/check?uri=referer">Valid XHTML!</a> |
        <a href="http://jigsaw.w3.org/css-validator/check/referer">Valid CSS!</a> |
      </div><!--/#footer-wrapper-->
    
    </div><!--/#outer-wrapper-->
  
  </body>

</html>




